package com.siysoft.tc.base.bean.to;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * The persistent class for the db_role_user database table.
 * 
 */
@Entity
@Table(name="db_role_user")
public class RoleUser implements Serializable {
	private static final long serialVersionUID = 1L;
	private int roleId;
	private int userId;
	private int id;
	
	public RoleUser(int userId,int roleId){
		this.userId=userId;
		this.roleId=roleId;
	}
	public RoleUser() {
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id")
	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	@Column(name="role_id")
	public int getRoleId() {
		return this.roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}


	@Column(name="user_id")
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

}